<!doctype html>
<html lang="<?php echo Yii::app()->language ?>">
<head>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<meta content="<?php echo Yii::app()->language; ?>" name="language">
	<title><?php #echo ($this->pageTitle)? CHtml::encode($this->pageTitle): "Log Center"; ?></title>
	<title><?php echo  "Log Center"; ?></title>
</head>
<body>
	<div id='globalbar'>
		<?php
		 $this->widget('bootstrap.widgets.BootNavbar', array(
		'fixed'=>false,
		'brand'=>Yii::app()->name,
		'brandUrl'=>'#',
		'collapse'=>true, // requires bootstrap-responsive.css
		'items'=>array(
			array(
				'class'=>'bootstrap.widgets.BootMenu',
				'items'=>array(
				array('label'=>'Bài viết', 'url'=>'#', 'items'=>array(
						array('label'=>'Quản lý', 'url'=>array('/entry/admin')),
						array('label'=>'Tạo mới', 'url'=>array('/entry/create')),
						array('label'=>'Chuyển từ hệ thống cũ', 'url'=>array('/entry/convertFromBK20')),
						array('label'=>'Chuyển 1 bài từ hệ thống cũ', 'url'=>array('/entry/convertById')),
						array('label'=>'Chuyển toàn bộ dữ liệu', 'url'=>array('/entry/importDB')),
				)),
			),
		),
		array(
			'class'=>'bootstrap.widgets.BootMenu',
			'htmlOptions'=>array('class'=>'pull-right'),
			'items'=>array(
				array('label'=>'Sign Out('.Yii::app()->hqUser->name.')', 'url'=>array('/hqUser/signOut'),
					'visible'=>!Yii::app()->hqUser->isGuest,
				),
			array('label'=>'Sign In', 'url'=>array('/hqUser/signIn'),
				'visible'=>Yii::app()->hqUser->isGuest,
				),
		),
	),
),
	)); ?>
	</div>

	<div class="container">
	<div class="row">
			<?php if(isset($this->breadcrumbs)):?>
				<?php $this->widget('bootstrap.widgets.BootBreadcrumbs', array(
					'homeLink'=>array('label'=>'HQ', 'url'=>array('/hq/')),
					'links'=>$this->breadcrumbs,
				)); ?><!-- breadcrumbs -->
			<?php endif?>
		</div>

		<div class="page-header"><h1></h1></div>

		<?php echo $content; ?>
	</div>

	<hr>
	<footer>
		<div class="container copy">
			&copy; 2012 by Bảo Kim JSC.
		</div>
	</footer>
</body>
</html>